<?php
  require "../Admin/viewModel.php";
  class Controller{
      protected $mod;//模型层对象
      protected $view;//视图层对象
      function __construct(){
        $c = isset($_GET['c'])?$_GET['c']:'index';
        $m = isset($_GET['m'])?$_GET['m']:'index';
        $this->view=new 
         ViewModel('View/'.$c.'/'.$m);
      }
      public function assign($variable,$value)
      {
        $this->view->assign($variable,$value);
      }
      public function display(){
        $this->view->display();
      }
  }
  ?>